package codegenerator;

import org.slf4j.Logger;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import baytony.util.log.Log;


public class Main {
	
	private static final Logger logger = Log.getLogger();

	public static void main(String[] args) {
		ConfigurableApplicationContext context  = new ClassPathXmlApplicationContext("applicationContext.xml");
		Executor executor = context.getBean(Executor.class);
		try {
			executor.execute();
		}
		catch(Exception e) {
			logger.error(e.getMessage());
			Log.logStackTrace(e);
		}
	}
}
